package day3;

import day2.People;

import java.util.HashMap;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class Map3Test {
    public static void main(String[] args) {
            Map map=new HashMap();
            //key是pepole,value是字符串
            map.put("dog","小狗");
            map.put("dog",4.5);
            map.put(45,"fourty-five");
            map.put(new People("小赵","女",22),"最帅");
            map.put(new People("老吴","女",52),"最胖");
            map.put(new People("小赵","男",24),"最矮");///!!!!!
            map.put(new People("小王","女",23),"最高");
        System.out.println(map.size());
        System.out.println(map);
    }
}
